package com.by.bean;

import com.by.common.group.ISave;
import com.by.common.group.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;


/**
 * @author 江俊俊
 * @version 1.0
 * @description
 * @date 2025/2/14 16:21
 * @since JDK1.8
 */
@ApiModel("客户")
@Data
public class Customer {

    @ApiModelProperty("客户id")
    @NotEmpty(message = "id不能为空", groups = {IUpdate.class})
    int id;

    @ApiModelProperty("客户姓名")
    @NotEmpty(message = "客户名称不能为空", groups = {ISave.class, IUpdate.class})
    String name;

    @ApiModelProperty("客户电话")
    String phone;
}
